<div class="main">
	<div id="media_search">
		<form action="<?php echo base_url()."index.php/media/media_search"?>" method="get">
			<div id="search_condition">
				<div id="search_type">
					<ul class="search">
						<li class="on" data="common"><a href="javascript:void(0)">市区大牌</a></li>
						<li data="led"><a href="javascript:void(0)">LED大牌</a></li>
						<li data="highway"><a href="javascript:void(0)">高速大牌</a></li>
						<li data="airport"><a href="javascript:void(0)">机场媒体</a></li>
					</ul>
					<input type="hidden" name ="media_type" id="media_type" value="common" />
				</div>
				<div class="search_table">
					<div class="search_area">
						<div class="search_title">位　置：</div>
						<div class="search_content">
							<div class="area_list">
							<select  class="area_select" onchange="province_change()" id="province" name="province" >
								<option value="">请选择</option>
								<?php if ($regions) {
									foreach ($regions as $region){?><option value="<?php echo $region['region_id']?>"  ><?php echo $region['region_name']?></option><?php 
									};
								}?>
							</select>
							</div>
							<div class="area_list" id="city_zone">
							<select class="area_select" onchange="city_change()" id="city" name="city">
								<option value="">请选择</option>
							</select>
							</div>
							<div class="area_list" id="area_zone">
							<select class="area_select"  id="area" name="area">
								<option value="">请选择</option>
							</select>
							</div>
						</div>
					</div>
					<div class="search_price">
						<div class="search_title">价　格：</div>
						<div class="search_content price">
							<div class="price_radio">
								<input type="radio" class="g_radio" name="price" checked="checked" id="price1" value="0"> <label for="price1"> 不限</label>
								<input type="radio" class="g_radio" name="price" id ="price2" value="10-30"> <label for="price2"> 10-30万</label>
								<input type="radio" class="g_radio"  name="price" id ="price3" value="30-50"> <label for="price3"> 30-50万</label>
								<input type="radio" class="g_radio"  name="price" id ="price4" value="50-70"> <label for="price4"> 50-70万</label>
								<input type="radio" class="g_radio"  name="price" id ="price5" value="70-100"> <label for="price5"> 70-100万</label>
							</div>
							<input type="text" placeholder="请输入价格范围" id="start_price" size="15" name="start_price"/> 至 
							<input type="text" placeholder="请输入价格范围" id="end_price" size="15" name="end_price"/> (万元)
						</div>
					</div>
				</div>
			</div>
			
			
			<div id="search_right">
				<input type="submit" class="search" value="">
				<a class="distribution_map"></a>
				<div></div>
				<div class="media_num_content"><span class="num"><?php echo number_format($statistics['city_num'],0,".",",")?></span>个城市，<span class="num"><?php echo number_format($statistics['media_num'],0,".",",")?></span>个户外媒体信息</div>
			</div>
		</form>
	</div>
	
	<div class="media_type">
		<div class="media_type_title">市区大牌</div>
		<div class="media_type_select">
			<ul>
				<li class="on"><a href="javascript:void(0)">精选</a></li>
				<li><a href="./media_search?media_type=common&province=2&city=36">北京</a></li>
				<li><a href="./media_search?media_type=common&province=10&city=108">上海</a></li>
				<li><a href="./media_search?media_type=common&province=20&city=233">广州</a></li>
				<li><a href="./media_search?media_type=common&province=20&city=235">深圳</a></li>
				<li><a href="./media_search?media_type=common&province=18&city=205">武汉</a></li>
			</ul>
		</div>
		<div class="more"><h3><a href="./media_search?media_type=common">更多<em>&gt;&gt;</em></a></h3></div>
	</div>
	<?php if ($common_media_list!=null){
		?>
	<div class="city_media">
		<div class="city_media_l">
			<div class="l_pic">
				<a target="_blank" href="./media_detail?id=<?php echo $common_media_list[0]['media_id']?>">
				<img alt="" src="<?php echo $this->config->item('ssi_pic_url').$common_media_list[0]['pic'];?>">
				</a>
				<div class="media_title"> 
				<a target="_blank" href="./media_detail?id=<?php echo $common_media_list[0]['media_id']?>">
				<?php echo $common_media_list[0]['location']?>
				</a>
				</div>
				<div class="media_content">
					媒体形式：<?php echo $common_media_list[0]['media_type_name']?>
					<br/>
					刊 例 价 ：<?php echo $common_media_list[0]['reference_price']?> 万/年
				</div>
				<div class="favorites"><a href="#"></a></div>
			</div>
		</div>
		<div class="city_media_r">
			<ul>
				<?php
				$list_num =count($common_media_list);
				for ($i=1;$i<$list_num;$i++){?>
				<li>
					<div >
						<a target="_blank" href="./media_detail?id=<?php echo $common_media_list[$i]['media_id']?>">
						<img alt="" src="<?php echo $this->config->item('ssi_pic_url').$common_media_list[$i]['pic'];?>">
						</a>
						<div class="media_title">
						<a target="_blank" href="./media_detail?id=<?php echo $common_media_list[$i]['media_id']?>">
						<?php echo $common_media_list[$i]['location']?>
						</a>
						</div>
							<div class="media_content">
								媒体形式：<a title="<?php echo $common_media_list[$i]['media_type_name']?>" alt="<?php echo $common_media_list[$i]['media_type_name']?>"><?php echo $common_media_list[$i]['media_type_name']?></a>
								<br/>
								刊 例 价 ：<a title="<?php echo $common_media_list[$i]['reference_price']?>万/年" alt="<?php echo $common_media_list[$i]['reference_price']?>万/年"><?php echo $common_media_list[$i]['reference_price']?>万/年</a>
							</div>
							<div class="favorites"><a href="#"></a></div>
					</div>
				</li>
				<?php }?>
			</ul>
		</div>
	</div>
	<?php }?>
	<div class="media_ad">
		<img alt="" src="../../images/media_ad1.png">
	</div>
	<div class="media_type">
		<div class="media_type_title">LED大屏</div>
		<div class="media_type_select">
			<ul>
				<li class="on"><a href="javascript:void(0)">精选</a></li>
				<li><a href="./media_search?media_type=led&province=2&city=36">北京</a></li>
				<li><a href="./media_search?media_type=led&province=10&city=108">上海</a></li>
				<li><a href="./media_search?media_type=led&province=20&city=233">广州</a></li>
				<li><a href="./media_search?media_type=led&province=20&city=235">深圳</a></li>
				<li><a href="./media_search?media_type=led&province=18&city=205">武汉</a></li>
			</ul>
		</div>
		<div class="more"><h3><a href="./media_search?media_type=led">更多<em>&gt;&gt;</em></a></h3></div>
	</div>
	<div class="led_media">
		<div class="led_media_l">
			<ul>
			<?php if ($led_media_list!=null) {
				foreach ( $led_media_list as $led_media){?>
				<li>
					<div >
						<a target="_blank" href="./media_detail?id=<?php echo $led_media['media_id']?>">
						<img alt="" src="<?php echo $this->config->item('ssi_pic_url').$led_media['pic'];?>">
						</a>
						<div class="media_title">
						<a target="_blank" href="./media_detail?id=<?php echo $led_media['media_id']?>">
						<?php echo $led_media['location']?>
						</a>
						</div>
							<div class="media_content">
								媒体形式：<a title="<?php echo $led_media['media_type_name']?>" alt="<?php echo $led_media['media_type_name']?>"><?php echo $led_media['media_type_name']?></a>
								<br/>
								刊 例 价 ：<a title="<?php echo $led_media['reference_price']?> 万/年" alt="<?php echo $led_media['reference_price']?> 万/年"><?php echo $led_media['reference_price']?> 万/年</a>
							</div>
							<div class="favorites"><a href="#"></a></div>
					</div>
				</li>	
			<?php }
			}?>
			</ul>
		</div>
		<div class="led_media_r">
				<ul>
					<li class="title">数据库当前统计</li>
					<li ><div class="media_num_content">累计收集<span class="num"><?php echo number_format($statistics['media_num'],0,".",",")?></span>个户外媒体</div></li>
					<li ><div class="media_num_content">累计监测<span class="num"><?php echo number_format($statistics['monitor_num'],0,".",",")?></span>个条目</div></li>
					<li ><div class="media_num_content">累计涉及<span class="num"><?php echo number_format($statistics['brand_num'],0,".",",")?></span>个品牌</div></li>
					<li ><div class="media_num_content">累计搜罗<span class="num"><?php echo number_format($statistics['vendor_num'],0,".",",")?></span>家媒体供应商</div></li>
					<li ><div class="media_num_content">比去年同比<span class="num"><?php echo $statistics['increase_proportion']?></span></div></li>
				</ul>
				<ul class="ad">
					<li class="title">产品更新与公告</li>
					<?php if ($media_announcement) {
						foreach ($media_announcement as $ma){?><li ><div ><a href="#"><?php echo $ma['title']?></a></div></li>
					<?php };
					}?>
					
				</ul>
		</div>
	</div>
	<div class="media_ad">
		<img alt="" src="../../images/media_ad1.png">
	</div>
	
	
	<div class="media_type">
		<div class="media_type_title">高速大牌</div>
		<div class="media_type_select">
			<ul>
				<li class="on"><a href="javascript:void(0)">精选</a></li>
				<li><a href="./media_search?media_type=highway&province=2&city=36">北京</a></li>
				<li><a href="./media_search?media_type=highway&province=10&city=108">上海</a></li>
				<li><a href="./media_search?media_type=highway&province=20&city=233">广州</a></li>
				<li><a href="./media_search?media_type=highway&province=20&city=235">深圳</a></li>
				<li><a href="./media_search?media_type=highway&province=18&city=205">武汉</a></li>
			</ul>
		</div>
		<div class="more"><h3><a href="./media_search?media_type=highway">更多<em>&gt;&gt;</em></a></h3></div>
	</div>
	<div class="highway_media">
		<ul>
			<?php $list_num =count($highway_media_list);
				for ($i=0;$i<$list_num;$i++){?>
			<li<?php if ($i%2==1) {
				echo " class=\"r\"";
			}?>>
				<div class="li">
					<div class="highway_pic">
					<a target="_blank" href="./media_detail?id=<?php echo $highway_media_list[$i]['media_id']?>">
					<img alt="" src="<?php echo $this->config->item('ssi_pic_url').$highway_media_list[$i]['pic'];?>">
					</a>
					</div>
					<div class="highway_media_content">
						<div class="media_title"><a target="_blank" href="./media_detail?id=<?php echo $highway_media_list[$i]['media_id']?>">
						<?php echo $highway_media_list[$i]['location'] ?>
						</a></div>
						<div class="media_content">
							媒体形式：<?php echo $highway_media_list[$i]['media_type_name'] ?>
							<br/>
							刊 例 价：<?php echo $highway_media_list[$i]['reference_price'] ?>万/年
						</div>
						<div class="favorites"><a href="#"></a></div>
					</div>
				</div>
			</li>
			<?php }?>
		</ul>
	</div>
</div>
	